package cn.wolfcode.luowowo.flight.service.impl;

import cn.wolfcode.luowowo.flight.domain.AirDest;
import cn.wolfcode.luowowo.flight.mapper.AirDestMapper;
import cn.wolfcode.luowowo.flight.service.IAirDestService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class AirDestServiceImpl implements IAirDestService {

    @Autowired
    private AirDestMapper airDestMapper;

    @Override
    public List<AirDest> selectByPy(String flag) {
        return airDestMapper.selectByPy(flag);
    }

    @Override
    public List<AirDest> hotFlights() {
        return airDestMapper.selectHotFlights();
    }
}
